package cn.jiyun.feign;

import cn.jiyun.entity.CourseDto;
import cn.jiyun.entity.CourseDto2;
import cn.jiyun.utils.ResultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Title: CourseFegin
 * @Author 王鸽
 * @Date 2023/8/23 19:40
 */
@FeignClient(name = "p11-day09-course")
public interface CourseFegin {
    @RequestMapping("/course/findCourseNum")
    public ResultResponse findCourseNum();
    @RequestMapping("/course/findCourse")
    public ResultResponse findCourse();
    @RequestMapping("/course/findpnum")
    public ResultResponse findpnum();
    @GetMapping("/course/dainzan")
    public ResultResponse dianzan(@RequestParam("name") String name);
    @GetMapping("/course/jianzan")
    public ResultResponse jianzan(@RequestParam("name") String name);
    @PostMapping("/course/findAll2")
    public ResultResponse findAll2(@RequestBody CourseDto courseDto);
    @PostMapping("/course/findAll3")
    public ResultResponse findAll3(@RequestBody CourseDto2 courseDto2);
    @PostMapping("/course/findAll4")
    public ResultResponse findAll4(@RequestBody CourseDto2 courseDto2);
    @GetMapping("/course/findAllKc")
    public ResultResponse findAllKc(@RequestParam("cid") Long cid);
    @RequestMapping("/course/findAll5")
    public ResultResponse findAll5(@RequestBody CourseDto courseDto);
}
